#!/bin/bash

# 杀死
PID=`ps -ef | grep pokemon | grep -v grep | awk '{print $2}'`
echo "查出pokemon相关的进程PID: $PID"
for item  in $PID
do
   kill -s 9 $item
   echo "已经kill进程: $item"
done

# 启动
nohup python pokemon.py > output.log 2>&1 &
